using System;
using System.Threading;
using System.Windows.Forms;


public class ScanThread
{
	public int Count = 0;
	public Thread runningThread = null;
	public ScanThread()
	{
	}

	public void StartScanThread(ThreadStart scanThreadDelegate)
	{
		runningThread = new Thread(scanThreadDelegate); 
		runningThread.Start();
	}

	public void Dispose()
	{
		if (this.runningThread!= null)
		{
			this.runningThread.Abort("Abort messasge");
			this.runningThread = null;
		}
	}
	
}

